package com.zjp.tree;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Map;

@Getter
@Setter
@Accessors(chain = true)
public class TreeNode<E> {
    private E id;
    private E pId;
    private String name;
    private Map<String, Object> extra;
    private List<TreeNode<E>> children;
}
